<?xml version="1.0" encoding="UTF-8" ?> 
<ui:composition
	xmlns="http://www.w3.org/1999/xhtml" 
    xmlns:ui="http://java.sun.com/jsf/facelets"  
    xmlns:h="http://java.sun.com/jsf/html"  
    xmlns:f="http://java.sun.com/jsf/core" 
    xmlns:p="http://primefaces.org/ui"
    xmlns:c="http://java.sun.com/jstl/core" >

	<style type="text/css">
	<!-- 
		.actionButtons{text-align:right;}
	-->
	</style>
	
	<!-- Modal para confirmação de exclusão de registros -->
   		<!-- <ui:include src="/resources/templates/modalConfirmar.xhtml">
   			
   			<ui:param name="bean" value="#{manterMensagemEmailBean}" />
   			<ui:param name="texto" value="Deseja realmente excluir este registro?" />
   			<ui:param name="actionConfirmar" value="comandoExcluirMensagem" />
   			<ui:param name="update" value=":formPesquisarMensagem:groupTabela"></ui:param>
   		
   		</ui:include>
 -->
 <p:dialog id="modalConfirmar" 
		   		closable="false"
		   		header="Confirmar" 
		   		widgetVar="confirmar" 
		   		modal="true" 
		   		resizable="false"
		   		width="400"
		   		draggable="false" > 
		   		
		<h:form id="formConfirmar">
		
			<p:panel>
			
				<h:outputText value="#{texto}" />
				
				<div class="actionButtons">
				
					<p:commandButton id="btnConfirmar"
									value="confirmar"
									ajax="true"
									action="#{bean[actionConfirmar]}"
									update="#{update}"
									oncomplete="confirmar.hide();" />
				
					<p:commandButton id="btnConfirmarCancelar"
									ajax="true"
									value="cancelar"
									onclick="confirmar.hide();" />
				
				</div>
				
			</p:panel>
		
		</h:form>
			
	</p:dialog>

	
</ui:composition>